#include <iostream>
using namespace std; 

class Test
{
	public:
		friend ostream& operator<<(ostream &out,const Test& t);
		
	public:
		Test(int data=0):m_data(data)
		{
			cout<<"Create"<<endl;
		}
		
		Test(const Test &t)
		{
			m_data=t.m_data;
		}
		
		~Test()
		{
			cout<<"delete"<<endl;
		}
				
	private:
		int m_data;
};

ostream& operator<<(ostream &out,const Test& t)
{
	out<<t.m_data;
	return out;
}

int main()
{
	Test t(10);
	cout<<t<<endl;
}

